slist: slist.o slist_test.o
	gcc hdf_slist.o slist_test.o -o slist
	rm *.o

slist.o:src/hdf_slist.c include/hdf_slist.h
	gcc -c src/hdf_slist.c -Iinclude

slist_test.o:test/slist_test.c include/hdf_slist.h
	gcc -c test/slist_test.c -Iinclude

dlist: dlist_test.o
	gcc  dlist_test.o -o dlist
	rm *.o

dlist_test.o:test/dlist_test.c include/hdf_dlist.h
	gcc -c test/dlist_test.c -Iinclude


queue: queue.o queue_test.o
	gcc los_queue.o queue_test.o -o queue
	rm *.o

queue.o:src/los_queue.c include/los_queue.h
	gcc -c src/los_queue.c -Iinclude

queue_test.o:test/queue_test.c include/los_queue.h
	gcc -c test/queue_test.c -Iinclude
 

#queue:
#	gcc src/los_queue.c test/queue_test.c -Iinclude -o queue
spf: spf.o spf_test.o
	gcc hdf_spf.o spf_test.o -o spf
	rm *.o

spf.o:src/hdf_spf.c include/hdf_spf.h
	gcc -c src/hdf_spf.c -Iinclude

spf_test.o:test/spf_test.c include/hdf_spf.h
	gcc -c test/spf_test.c -Iinclude
#spf:
#	gcc src/hdf_spf.c test/spf_test.c -Iinclude -o spf

tree: tree.o tree_test.o
	gcc hdf_tree.o tree_test.o -o tree
	rm *.o

tree.o:src/hdf_tree.c include/hdf_tree.h
	gcc -c src/hdf_tree.c -Iinclude

tree_test.o:test/tree_test.c include/hdf_tree.h
	gcc -c test/tree_test.c -Iinclude
#tree:
#	gcc src/hdf_tree.c test/tree_test.c -Iinclude -o tree

bitmap: bitmap.o bitmap_test.o
	gcc los_bitmap.o bitmap_test.o -o bitmap
	rm *.o

bitmap.o:src/los_bitmap.c include/los_bitmap.h
	gcc -c src/los_bitmap.c -Iinclude

bitmap_test.o:test/bitmap_test.c include/los_bitmap.h
	gcc -c test/bitmap_test.c -Iinclude
#bitmap:
#	gcc src/los_bitmap.c test/bitmap_test.c -Iinclude -o bitmap

map: map.o map_test.o
	gcc hdf_map.o map_test.o -o map
	rm *.o

map.o:src/hdf_map.c include/hdf_map.h
	gcc -c src/hdf_map.c -Iinclude

map_test.o:test/map_test.c include/hdf_map.h
	gcc -c test/map_test.c -Iinclude
#map: 
#	gcc src/hdf_map.c test/map_test.c -Iinclude -o map